package main

import "fmt"

type Person struct {
	Age  int
	Name string
}

func main() {

	var p1 Person
	p1.Age = 10
	p1.Name = "xiaoming"

	var p2 *Person = &p1
	fmt.Println(p2.Age)
	p2.Name = "tom"
	fmt.Printf("%p", &p2)
	fmt.Println(p1.Name)

}

//10
//0xc042082018tom
